package com.ruoyi.erp.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.erp.mapper.LedyFeeRefundMapper;
import com.ruoyi.erp.domain.LedyFeeRefund;
import com.ruoyi.erp.service.ILedyFeeRefundService;

/**
 * 退费管理Service业务层处理
 * 
 * @author ztj
 * @date 2023-04-04
 */
@Service
public class LedyFeeRefundServiceImpl implements ILedyFeeRefundService 
{
    @Autowired
    private LedyFeeRefundMapper ledyFeeRefundMapper;

    /**
     * 查询退费管理
     * 
     * @param id 退费管理主键
     * @return 退费管理
     */
    @Override
    public LedyFeeRefund selectLedyFeeRefundById(Long id)
    {
        return ledyFeeRefundMapper.selectLedyFeeRefundById(id);
    }
    @Override
    public List<LedyFeeRefund> selectLedyFeeRefundByIds(Long[] ids)
    {
        return ledyFeeRefundMapper.selectLedyFeeRefundByIds(ids);
    }
    /**
     * 查询退费管理列表
     * 
     * @param ledyFeeRefund 退费管理
     * @return 退费管理
     */
    @Override
    public List<LedyFeeRefund> selectLedyFeeRefundList(LedyFeeRefund ledyFeeRefund)
    {
        return ledyFeeRefundMapper.selectLedyFeeRefundList(ledyFeeRefund);
    }

    /**
     * 新增退费管理
     * 
     * @param ledyFeeRefund 退费管理
     * @return 结果
     */
    @Override
    public int insertLedyFeeRefund(LedyFeeRefund ledyFeeRefund)
    {
        ledyFeeRefund.setCreateTime(DateUtils.getNowDate());
        return ledyFeeRefundMapper.insertLedyFeeRefund(ledyFeeRefund);
    }

    /**
     * 修改退费管理
     * 
     * @param ledyFeeRefund 退费管理
     * @return 结果
     */
    @Override
    public int updateLedyFeeRefund(LedyFeeRefund ledyFeeRefund)
    {
        ledyFeeRefund.setUpdateTime(DateUtils.getNowDate());
        return ledyFeeRefundMapper.updateLedyFeeRefund(ledyFeeRefund);
    }

    /**
     * 批量删除退费管理
     * 
     * @param ids 需要删除的退费管理主键
     * @return 结果
     */
    @Override
    public int deleteLedyFeeRefundByIds(Long[] ids)
    {
        return ledyFeeRefundMapper.deleteLedyFeeRefundByIds(ids);
    }

    /**
     * 删除退费管理信息
     * 
     * @param id 退费管理主键
     * @return 结果
     */
    @Override
    public int deleteLedyFeeRefundById(Long id)
    {
        return ledyFeeRefundMapper.deleteLedyFeeRefundById(id);
    }
}
